//package com.gdepri.mqtt.publisher;
//
//import com.github.tocrhz.mqtt.publisher.MqttPublisher;
//import org.springframework.stereotype.Component;
//
//@Component
//public class DemoService {
//
//    private final MqttPublisher publisher;
//
//    public DemoService(MqttPublisher publisher) {
//        this.publisher = publisher;
//    }
//
//    public void sendTest(){
//        publisher.send("/v1/devices/yibuisbest/topo/test", "test message, default QOS is 0.");
//
//    }
//
//    public static void main(String[] args) {
//        MqttPublisher publisher = new MqttPublisher();
//        DemoService ds = new DemoService(publisher);
//        ds.sendTest();
//    }
//}
